package redis.client.nedis.reply;

import io.netty.util.CharsetUtil;

import java.nio.charset.Charset;

/**
 * @author gaodong
 * @version 1.0
 * @date 2020/11/18 9:30
 */
public class StatusReply implements IReply<String> {
    public static final char MARKER = '+';
    private String status;
    private byte[] statusBytes;

    public StatusReply(String status) {
        this.status = status;
        this.statusBytes = status.getBytes(CharsetUtil.UTF_8);
    }

    @Override
    public String data() {
        return status;
    }

    @Override
    public String toString() {
        return status;
    }
}
